/*
 * CustomNotification.h
 *
 *  Created on: Apr 17, 2017
 *      Author: zhangjf
 */

#ifndef INCLUDE_CUSTOMNOTIFICATION_H_
#define INCLUDE_CUSTOMNOTIFICATION_H_

#include <Poco/Notification.h>

using namespace Poco;

namespace utils
{

class CustomNotificationBase : public Notification
{
public:
	CustomNotificationBase();
	virtual ~CustomNotificationBase();

private:
};

template<typename C>
class CustomNotification : public CustomNotificationBase
{
public:
	CustomNotification(const C& custom)
	: _custom(custom) {}
	const C& custom() const { return _custom; }

protected:
	virtual ~CustomNotification() {}

private:
	const C _custom;
};

} /* namespace global */



#endif /* INCLUDE_CUSTOMNOTIFICATION_H_ */
